#!/usr/bin/python
#Filename: backup_ver1.py
import os
import time

source = ['/projects/google-code/yinlijunfunction/', '/projects/google-code/yinlijunpython/']
dest_dir = '/projects/google-code/yinlijun_code_backup/'
dest = dest_dir + time.strftime('%Y%m%d%H%M%S') + '.zip'

command = 'zip -rq %s %s' %(dest, ' '.join(source))

if(os.system(command)) == 0:
	print "Successful backup to", dest 
else:
	print "Backup FAILED"
